<?php 
session_start();
?>
<html>
<head>
<script>
	window.print();
</script>
</head>
<body>
<?php
 include_once('laporan_action.php');
$aa = abs($_GET['t']);
$bb = abs($_GET['b']);
$thunAng = get_data("SELECT * FROM spm_thn_angg where id_thn_angg = $aa");
$bidang = get_data("SELECT * FROM spm_bidang_urusan where id_bidang = $bb"); 
?>
<?php 

	$laporan = new laporan(); 
	echo "
		<h3 style='font-family:arial' class='page-title'>
			<b><center>RENCANA PROGRAM, KEGIATAN, INDIKATOR KINERJA DAN PENDANAAN INDIKATIF SKPD</center></b>
		</h3>
			<center><b>Tahun Anggaran: ".$thunAng['thn_angg']." </b></center>
			<b><center>Provinsi: Sumatera Barat</center></b>
			<b><center>Kota: PAYAKUMBU</center></b>
			<b><center>Bidang Urusan: ".$bidang['nama_bidang']."</center></b>
			<b><center>SKPD: ".$_SESSION['_skpd']."</center></b>
			</br>
	"; 
?>
<table cellpadding="0" cellspacing="0" border="1" class="table table-striped geo-table" align="center" width="100%">
	<thead>
        <tr>
			<th rowspan="3" class="hidden-phone" style="width:50px; text-align:center;">Kode</th>
			<th rowspan="3" colspan="2"style="text-align:center; 	">Program, Indikator dan Kegiatan</th>
			<th rowspan="3" style="text-align:center;">Data Capaian Pada Perencanaan Awal</th>
			<th colspan="10"style="text-align:center;">Target Kinerja Program dan Kerangka Pendanaan</th>
			<th rowspan="3" style="text-align:center;">Unit kerja SKPD Penanggung jawab</th>
        </tr>
		<tr>
			<th colspan="2" ><?php echo $thunAng['thn_angg']?></th>
			<th colspan="2" ><?php echo $thunAng['thn_angg']+1?></th>
			<th colspan="2" ><?php echo $thunAng['thn_angg']+2?></th>
			<th colspan="2" ><?php echo $thunAng['thn_angg']+3?></th>
			<th colspan="2" ><?php echo $thunAng['thn_angg']+4?></th>
		</tr>
		<tr>
			<th style="text-align:center; width:80px;">Target</th>
			<th style="text-align:center; width:80px;">Rp</th>
			<th style="text-align:center; width:80px;">Target</th>
			<th style="text-align:center; width:80px;">Rp</th>
			<th style="text-align:center; width:80px;">Target</th>
			<th style="text-align:center; width:80px;">Rp</th>
			<th style="text-align:center; width:80px;">Target</th>
			<th style="text-align:center; width:80px;">Rp</th>
			<th style="text-align:center; width:80px;">Target</th>
			<th style="text-align:center; width:80px;">Rp</th>
		</tr>
    </thead>
	<tbody id="tbody-laporan">
	<?php
		$laporan -> view_data();
	?>
	</tbody>
</table>
</body>
</html>